package com.videoweb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.videoweb.entity.Favorites;
import com.videoweb.entity.VideoFavorite;
import com.videoweb.entity.dto.CheckFavoritesDTO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lmr
 * @since 2025-05-17
 */
public interface IFavoritesService extends IService<Favorites> {


    public boolean createFavorites(Favorites favorites);
    public boolean removeFavoritesByFavorId(Long favoriteId);




    public boolean addVideoFavorites(VideoFavorite videoFavorite);

    public boolean cancelVideoFromFavorites(Long videoId , Long favoritesId );



    public List<Favorites> getAllFavoritesByUserId(Long userId);

    public CheckFavoritesDTO checkVideoFavorites(Long videoId);


    public boolean saveBatchFavorites( Long videoId, List<Long> favoritesIds);
}
